package edu.uc.labs.MobilePrinting.OSUtils;

import edu.uc.labs.MobilePrinting.Configurator;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import javax.xml.parsers.*;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
import org.apache.log4j.Logger;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;

/**
 * An XML Parser for Printer Configurations
 * 
 * @author Matthew Silbernagel
 */
public class Parser {
	protected static Logger logger = Configurator.LOGGER;

	/**
	 * Constructs a parser that can parse Printer Configurations
	 */
	public Parser() throws ParserConfigurationException {
		DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
		builder = dbfactory.newDocumentBuilder();
		XPathFactory xpfactory = XPathFactory.newInstance();
		path = xpfactory.newXPath();

	}
	
	
	
	
	protected DocumentBuilder builder;
	protected XPath path;
}
	
	